package com.jmlee.service.impl;

import com.jmlee.mapper.CarouselMapper;
import com.jmlee.pojo.Carousel;
import com.jmlee.service.CarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description 轮播广告服务
 * @Author jmLee
 * @Date 2021/3/7 19:24
 * @Version 1.0
 */
@Service
public class CarouselServiceImpl implements CarouselService {

    @Autowired
    private CarouselMapper carouselMapper;

    @Override
    public List<Carousel> getSixCarousel() {

        return carouselMapper.selectNewCarousel();
    }
}
